package com.serkol.abmanager.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * 
 * @TableName goods
 */
@TableName(value ="goods")
public class Goods implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private String qrCode;

    /**
     * 
     */
    private Date date;

    /**
     * 
     */
    private Integer weight;

    /**
     * 
     */
    private Long status;

    /**
     * 
     */
    private Date createDate;

    /**
     * 
     */
    private Date updateDate;

    /**
     * 
     */
    private Long groupId;

    /**
     * 
     */
    private Long deptId;

    /**
     * 
     */
    private Long userId;
    private String userName;
    private Integer type;
    private String boxRfid;

    private  String licensePlateNum;
    private  Long carId;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getQrCode() {
        return qrCode;
    }

    public void setQrCode(String qrCode) {
        this.qrCode = qrCode;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getBoxRfid() {
        return boxRfid;
    }

    public void setBoxRfid(String boxRfid) {
        this.boxRfid = boxRfid;
    }

    public String getLicensePlateNum() {
        return licensePlateNum;
    }

    public void setLicensePlateNum(String licensePlateNum) {
        this.licensePlateNum = licensePlateNum;
    }

    public Long getCarId() {
        return carId;
    }

    public void setCarId(Long carId) {
        this.carId = carId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Goods goods = (Goods) o;
        return Objects.equals(getId(), goods.getId()) && Objects.equals(getQrCode(), goods.getQrCode()) && Objects.equals(getDate(), goods.getDate()) && Objects.equals(getWeight(), goods.getWeight()) && Objects.equals(getStatus(), goods.getStatus()) && Objects.equals(getCreateDate(), goods.getCreateDate()) && Objects.equals(getUpdateDate(), goods.getUpdateDate()) && Objects.equals(getGroupId(), goods.getGroupId()) && Objects.equals(getDeptId(), goods.getDeptId()) && Objects.equals(getUserId(), goods.getUserId()) && Objects.equals(getUserName(), goods.getUserName()) && Objects.equals(getType(), goods.getType()) && Objects.equals(getBoxRfid(), goods.getBoxRfid()) && Objects.equals(getLicensePlateNum(), goods.getLicensePlateNum()) && Objects.equals(getCarId(), goods.getCarId());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getId(), getQrCode(), getDate(), getWeight(), getStatus(), getCreateDate(), getUpdateDate(), getGroupId(), getDeptId(), getUserId(), getUserName(), getType(), getBoxRfid(), getLicensePlateNum(), getCarId());
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", qrCode='" + qrCode + '\'' +
                ", date=" + date +
                ", weight=" + weight +
                ", status=" + status +
                ", createDate=" + createDate +
                ", updateDate=" + updateDate +
                ", groupId=" + groupId +
                ", deptId=" + deptId +
                ", userId=" + userId +
                ", userName=" + userName +
                ", type=" + type +
                ", boxRfid=" + boxRfid +
                ", licensePlateNum='" + licensePlateNum + '\'' +
                ", carId=" + carId +
                '}';
    }
}